From: Gabor Juhos Date: Wed, 6 Jul 2011 08:04:49 +0000 (+0000) Subject: tools/firmware-utils: allow to create buffalo tags w/o hw version X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=6f0b2df6d67cdf5712339b28b53a02129fc4be9e;p=project%2Ffirmware-utils.git tools/firmware-utils: allow to create buffalo tags w/o hw version SVN-Revision: 27472 --- diff --git a/src/buffalo-tag.c b/src/buffalo-tag.c index e3f7625..bb76342 100644 --- a/src/buffalo-tag.c +++ b/src/buffalo-tag.c @@ -97,7 +97,9 @@ static int check_params(void) CHECKSTR(major, "major version", TAG_VERSION_LEN); CHECKSTR(minor, "minor version", TAG_VERSION_LEN); CHECKSTR(language, "language", TAG_LANGUAGE_LEN); - CHECKSTR(hwver, "hardware version", 2); + + if (hwver) + CHECKSTR(hwver, "hardware version", 2); if (num_regions == 0) { ERR("no region code specified");